// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1

Item {
    width: 450
    height: 600

    Rectangle {
        id: rectangle1
        x: 16
        y: 96
        width: 238
        height: 68
        color: "#ffffff"
    }

    Text {
        id: text1
        x: 16
        y: 30
        text: qsTr("text")
        font.pixelSize: 44
    }

    Mbutton {
        id: mbutton1
        x: 270
        y: 90
        textstring: "test"
        pro_width: 160
    }

    CheckBox {
        id: checkbox1
        x: 16
        y: 190
        textstring: "checktest0"
    }

    CheckBox {
        id: checkbox2
        x: 270
        y: 190
        textstring: "checktest1"
    }

    CheckBox {
        id: checkbox3
        x: 16
        y: 262
        textstring: "checktest2"
    }

    ListView {
        id: list_view1
        x: 16
        y: 326
        width: 414
        height: 254
        delegate: Item {
            x: 5
            height: 40
            Row {
                id: row1
                spacing: 10
                Rectangle {
                    width: 40
                    height: 40
                    color: colorCode
                }

                Text {
                    text: name
                    anchors.verticalCenter: parent.verticalCenter
                    font.bold: true
                }
            }
        }
        model: ListModel {
            ListElement {
                name: "Grey"
                colorCode: "grey"
            }

            ListElement {
                name: "Red"
                colorCode: "red"
            }

            ListElement {
                name: "Blue"
                colorCode: "blue"
            }

            ListElement {
                name: "Green"
                colorCode: "green"
            }
        }
    }
}
